//
//  SLAttentionHeadCell.m
//  StarLight
//
//  Created by apple on 16/8/12.
//  Copyright © 2016年 Duke.Wu. All rights reserved.
//

#import "SLAttentionHeadCell.h"

@interface SLAttentionHeadCell ()

@property (nonatomic ,strong) UIImageView *img;
@property (nonatomic ,strong) UILabel *titleName;

@end

@implementation SLAttentionHeadCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addUI];
    }
    return self;
}
- (void)addUI{
    [self addSubview:self.img];
    [self addSubview:self.titleName];
    
    [self.titleName mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.and.centerY.equalTo(self);
    }];
    
    [self.img mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.titleName.mas_left).with.offset(-9);
        make.centerY.equalTo(self);
        make.height.mas_equalTo(12);
    }];
}
- (UIImageView *)img{
    if (!_img) {
        _img = [UIImageView new];
        _img.image = IMG(@"ic_tongbu");
    }
    return _img;
}
- (UILabel *)titleName{
    if (!_titleName) {
        _titleName = [UILabel new];
        _titleName.text = @"同步联系人的动态";
        _titleName.font = bFont(17);
        _titleName.textColor = RGBCOLOR(253, 173, 0);
    }
    return _titleName;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
